@/*
    表单中input框标签中各个参数的说明:

    hidden : input hidden框的id
    id : input框id
    name : input框名称
    readonly : readonly属性
    clickFun : 点击事件的方法名
    placeholder:placeholder
    style : 附加的css属性
    width: 自定义宽默认100%
    disabled:disabled
    onChange :监听变化
    tips: 提示信息
@*/
@if(isEmpty(width)){
@	width="100%";
@}
<div class="form-group has-feedback">
    @if(!isEmpty(name)){
    <label class="lab">${name!}</label>
    @}
    <div class="ele ${isEmpty(name)?'ele-fit':''}">
        <input class="textbox" id="${id}" name="${id}" style="width:${width!}"
               @if(isNotEmpty(value)){
                    value="${value}"
               @}
               @if(isNotEmpty(type)){
                    type="${type}"
               @}else{
                    type="text"
               @}
               @if(isNotEmpty(readonly)){
                    readonly="${readonly}"
               @}
               @if(isNotEmpty(clickFun)){
                    onclick="${clickFun}"
               @}
               @if(isNotEmpty(style)){
                    style="${style}"
               @}
               @if(isNotEmpty(placeholder)){
                    placeholder="${placeholder}"
               @}
               @if(isNotEmpty(disabled)){
                    disabled="${disabled}"
               @}
               @if(isNotEmpty(onChange)){
                    onChange="${onChange}"
               @}
               @if(isNotEmpty(type)&&(type=="number")){
               		onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'') "
               @}
               @if(isNotEmpty(type)&&(type=="double")){
                    onblur="if (!/^\d+(\.\d+)?$/.test(this.value)){this.value='';}"
               @}
        >
        @if(isNotEmpty(hidden)){
            <input class="form-control" type="hidden" id="${hidden}" name="${hidden}" value="${hiddenValue!}">
        @}

        @if(isNotEmpty(selectFlag)){
            <div id="${selectId}" style="display: none; position: absolute; z-index: 200;">
                <ul id="${selectTreeId}" class="ztree tree-box" style="${selectStyle!}"></ul>
            </div>
        @}
		@if(isNotEmpty(tips)){
	        <span class="help-block m-b-none">${tips!}</span>
		@}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
    <div class="hr-line-dashed"></div>
@}


